Adding rows and columns to report in code
Hi.
Im not sure what im doing wrong. Im trying to add rows from C# code (in Visual studio) to my table, but it doenst show anything:
Can anyone help?
Im not sure what im doing wrong. Im trying to add rows from C# code (in Visual studio) to my table, but it doenst show anything:
FastReport.Report newrep = new FastReport.Report();
newrep.Load(@"..\..\SzablonyCR\Rep1.frx");
FastReport.Table.TableObject Table1 = (FastReport.Table.TableObject)newrep.FindObject("Table1");
then in loop:
for (.....){
                                      tc.Text = item.nazwaDluga;
                                        tr.AddChild(tc);
                                        tc = new FastReport.Table.TableCell();
                                        tc.Text = item.ilosc.ToString();
                                        tr.AddChild(tc);
                                        Table1.Rows.Add(tr);
}
Can anyone help?
Comments
Now can anyone help me with creating custom table?
I need something like:
______________________
|__________|__________|
|_____________________|
but all i can create is just 2 columns, cant set that row 0 columns count = 2, row 1 columns count = 1.
I am using the latest .NET build and C#
Cheers
Jason